//////////////////////////////////////////////////////
//													//
//       Interface for the CXmlElement class.       // 
//													//
//////////////////////////////////////////////////////

#ifndef _XMLELEMENT_H_
#define _XMLELEMENT_H_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

class CXmlElement : public CObject
{
public:
	CXmlElement();
	virtual ~CXmlElement();

	//attributes for element
	CString m_strName;
	CString m_strAttributes;
	CString m_strData;
	
	//object list of the child elements
	CObList m_ChildElements;
	//pointer to the parent element
	CXmlElement *m_pParentElement;

	//position for the element 
	POSITION m_posFind;
	CString m_strFind;

	//Get the value for element of CXmlElement.
	CString GetValue(CString attribute);
};

#endif // _XMLELEMENT_H_